import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    list:['text1','text2','text3','text4','text5'],
    // list:[{'text1':1},{'text1':2},{'text1':3},{'text1':4},{'text1':5},],
    changeList:"",
    serchValue:"",
    reverse:true,
    include:""
  },
  mutations: {
    modifyList1(state,payload){
      state.changeList=payload
    },
    modifyList2(state,payload){
      state.changeList=payload
    },
    modifyList3(state,payload){
      state.reverse=payload
    },
    modifyList4(state,payload){
      state.reverse=payload
    },
    modifyList5(state,payload){
      state.include=payload
    },
  },
  actions: {
  },
  modules: {
  }
})
